//
//  Category.m
//  YYZB
//
//  Created by 顾悦 on 16/3/30.
//
//

#import "ProjectCategory.h"

@implementation ProjectCategory

- (instancetype)initWithDictionary:(NSDictionary *)d {
    ProjectCategory *item = [self class].new;
    item.ID = d[@"CategoryId"];
    item.code = d[@"CategoryCode"];
    item.name = d[@"CategoryName"];
    item.level = d[@"CategoryLevel"];
    return item;
}

- (instancetype)initWithID:(NSString *)ID name:(NSString *)name {
    ProjectCategory *item = [self class].new;
    item.ID = ID;
    item.name = name;
    return item;
}

@end
